package com.ding.eduservice.service;

import com.ding.commonutils.Result;
import com.ding.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ding.eduservice.entity.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-11-16
 */
public interface EduChapterService extends IService<EduChapter> {

    List<ChapterVo> getChapterByCourseId(String courseId);

    int addChapterdata(EduChapter eduChapter);

    EduChapter getInfo(String chaptedId);

    Result updateChapterdata(EduChapter eduChapter);

    int delChapterdata(String chaptedId);

    void delchapterByCourseId(String courseId);
}
